local Vector2 = {}

function Vector2.new(x, y)
    return CS.UnityEngine.Vector2(x, y)
end

function Vector2.lerp(vec1, vec2, r)
    return CS.UnityEngine.Vector2.Lerp(vec1, vec2, r)
end

function Vector2.equal(vec1, vec2)
    if vec1.x == vec2.x and vec1.y == vec2.y then
        return true
    end
    return false
end

function Vector2.distance(vec1, vec2)
    return math.sqrt((vec1.x - vec2.x) * (vec1.x - vec2.x) + (vec1.y - vec2.y) * (vec1.y - vec2.y))
end

Vector2.up = CS.UnityEngine.Vector2.up

Vector2.left = CS.UnityEngine.Vector2.left

Vector2.right = CS.UnityEngine.Vector2.right

Vector2.zero = CS.UnityEngine.Vector2.zero

return Vector2
